#include "othercontent.h"
#include <stdio.h>

void OtherContent::setFileName(const char * File){
	FileName = File;
}

void OtherContent::setGetQuery(const char *){

}

void OtherContent::setPostQuery(const char *){

}

std::string OtherContent::getResponse(){
	FILE *P = fopen(FileName , "rb");
	char buf[1024];
	std::string S;
	while (!feof(P)) {
		int sz = fread(buf, 1, 1023, P);
		S.append(buf, sz);
	}
	fclose(P);
	return S;
}
